import {HomeComponent} from './home/home.component';
import {LoadChildren,RouterModule} from '@angular/router';
import {LoginComponent} from './login/login.component';
// import {AppComponent} from './app.component';
import {RegisterComponent} from './register/register.component';

export const appRoutes=[
    {
        path:'',
        redirectTo:'home',
        pathMatch:'full'
    },
    {
        path:'home',
        loadChildren:'./home/home.module#HomeModule'
    },
    {
        path:'login',
        loadChildren:'./login/login.module#LoginModule',
        //component:LoginComponent
    },
    {
        path:'register',
        component:RegisterComponent
    },
    {
        path:'**',
        loadChildren:'./home/home.module#HomeModule'
    }
]